package br.com.Thread;

import java.io.Serializable;
import java.util.Random;

/**
 *
 * @author gilberto.costa teste
 */
public class threadCopiaVendaCaixa implements Serializable, Runnable {

    public static Integer cont = 0;

    @Override
    public void run() {
        if (cont == 0) {
            Random aleatorio = new Random();
            try {
                while (true) {
                    Thread.sleep(5000);
                    System.out.println("Rodando..... (5 segundos)");
                }
            } catch (Exception e) {
                System.out.println("ERRO " + e);
            }
        }
    }
}
